<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${dict.id}"
                               class="form-control" type="hidden">
                        <input id="parentId" name="parentId" th:value="${dict.parentId}"
                               class="form-control" type="hidden">
                        <div class="form-group">
	                            <label class="col-sm-3 control-label">字典类型：</label>
	                            <div class="col-sm-8">
	                                <select data-placeholder="--选择类别--" name="type" id="type"
	                                        class="form-control chosen-select" tabindex="2" required>
	                                    <option value="">--选择类别--</option>
	                                    <option value="1" th:selected="${dict.type == 1}">数据分类</option>
	                                    <option value="2" th:selected="${dict.type == 2}">数据值</option>
	                                </select>
	                            </div>
						</div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">字典名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${dict.name}"
                                       class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">数据编码/值：</label>
                            <div class="col-sm-8">
                                <input id="value" name="value" th:value="${dict.value}"
                                       class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">描述：</label>
                            <div class="col-sm-8">
                                <input id="description" name="description"
                                       th:value="${dict.description}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">排序：</label>
                            <div class="col-sm-8">
                                <input id="orderNum" name="orderNum" th:value="${dict.orderNum}"
                                       class="form-control" type="text" required="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
<script type="text/javascript" src="/js/app/base/dict/edit.js" th:src="@{/js/app/base/dict/edit.js}">
</script>
</body>
</html>
